<?php echo $header; ?>
<div class="container">
  <ul class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php } ?>
  </ul>
  <div class="row"><?php echo $column_left; ?>
    <?php if ($column_left && $column_right) { ?>
    <?php $class = 'col-sm-6'; ?>
    <?php } elseif ($column_left || $column_right) { ?>
    <?php $class = 'col-sm-9'; ?>
    <?php } else { ?>
    <?php $class = 'col-sm-12'; ?>
    <?php } ?>
    <div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?>
      <h1><?php echo $heading_title; ?></h1>
      <div class="info">
        <p><i class="fa fa-calendar-check-o" aria-hidden="true"></i> <?php echo $date_added; ?> <?php echo $author; ?></p>
        <div class="share">
          <!-- Baidu Share BEGIN -->
          <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
          <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
          <!-- Baidu Share END -->
        </div>
      </div>
      <hr>
      <?php if ($description): ?>
      <div class="description small">
        <?php echo $description; ?>
      </div>
      <hr>
      <?php endif ?>
      <div class="post-body">
      <?php echo $content; ?>
      </div>
      <hr>
      <div class="seo">
        <ul class="list-unstyled">
          <li><?php echo $text_title; ?><?php echo $heading_title; ?></li>
          <li><?php echo $text_permalink; ?><a href="<?php echo $href; ?>"><?php echo $href; ?></a></li>
          <?php if ($categories): ?>
          <li><?php echo $text_category; ?>
            <?php foreach ($categories as $category): ?>
            <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
            <?php endforeach ?>
          </li>
          <?php endif ?>
        </ul>
      </div>
    <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>
<script>
  $(document).ready(function() {
    var post_body_width = $('.post-body').width();
    $('#content .post-body img').each(function() {
      if($(this).width() > post_body_width) {
        $(this).removeClass('img-responsive').addClass('img-responsive');
      }
    });
  })
</script>
<?php echo $footer; ?>
